package com.example.mqltest.service;

import com.example.mqltest.Dto.WorkFileDto;
import com.example.mqltest.entity.*;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

public interface CourseService {
    List<Course> getCourseByStudent(String studentId);

    List<Course> getCourseByTeacher(String teacherId);

    //创建课程
    Result createCourse(Course course);

    Result archiveCourse(String code, String studentId, String teacherId,String archiveStatus);

    List<WorkFileDto> getWorkFileByStudent(String studentId, int workId);

    void studentUpdateWorkStatus(String studentId, int workId, String status, Date date);


    Work getWorkById(int workId);

    Result deleteWorkFile(int fileId);

    List<StudentWork> getStudentWorkById(int workId);

    List<Work> getAllWorksByCode(String code);

    WorkList getStudentWork(int workId, String studentId);

}
